{extend name="index/base" /}
{block name="main"}
    <div class="container">
        <table class="table table-hover">
            <caption>小说排行榜</caption>
            <thead>
            <tr>
                <th>书名</th>
                <th>作者</th>
                <th>起点链接</th>
                <th>最新章节(因起点缓存问题，最新章节可能不准)</th>
            </tr>
            </thead>
            <tbody>
                {foreach $data as $value}
                <tr>
                    <td><a href="{:url('index/index/queryListBaidu',array('book'=>$value.name))}?link={$value.link}">{$value.name}</a></td>
                    <td>{$value.author}</td>
                    <td><a href="{$value.link}">{$value.link}</a></td>
                    <td>{$value.update}</td>
                </tr>
                {/foreach}
            </tbody>
        </table>
        
		<ul class="pager">
			<li class="previous"><a href="{:url('index/index/index',array('page'=>$page-1))}">&larr; 上一页</a></li>
			<li class="next"><a href="{:url('index/index/index',array('page'=>$page+1))}">下一页 &rarr;</a></li>
		</ul>
    </div>
{/block}